package com.saxing.testflux.action;

import com.saxing.testflux.action.base.ActionsCreatorFactory;
import com.saxing.testflux.dispatcher.Dispatcher;

/**
 * Created by saxing on 17-7-9.
 */

public class CommonActionCreator extends ActionsCreatorFactory {
    public CommonActionCreator(Dispatcher dispatcher) {
        super(dispatcher);
    }

    public void refreshData(){
        actionsCreator.sendMessage(new CommonAction.CommonActionEntity()
            .buildWithType(CommonAction.TYPE_REFRESH));
    }

    public void deleteData(){
        actionsCreator.sendMessage(new CommonAction.CommonActionEntity()
            .buildWithType(CommonAction.TYPE_DELETE));
    }
}
